package util

import (
	"github.com/astaxie/beego"
	"github.com/astaxie/beego/logs"
)

func init() {
	fileLogs := logs.NewLogger(beego.AppConfig.DefaultInt64("logs_channelLens", 1000))
	fileLogs.SetLogger(beego.AppConfig.String("logs_type"), `{"filename":"`+beego.AppConfig.String("logs_filename")+`","separate":["emergency", "alert", "critical", "error", "warning", "notice", "info", "debug"],"level":7,"daily":true,"maxdays":10}`)
}
